package com.by;

import com.by.saconfig.CustomLoadBalancerConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableEurekaClient
@LoadBalancerClients(defaultConfiguration = {CustomLoadBalancerConfiguration.class}) //更改均衡策略
//@LoadBalancerClient(value="ERP-STOCK",configuration = {CustomLoadBalancerConfiguration.class}) //value、name请求是那个服务的负载均衡
public class ErpOrderApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(ErpOrderApplication.class, args);
    }
}
